package com.dinglit.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.dinglit.domian.UserDO;

/**
 * 169876809
 * 
 * @author qianzhang 
 * 
 * 2017-06-11 8:45:34
 * 
 */

@RestController
@RequestMapping("/user")
public class UserController {

	/**
	 * 返回demo数据: 请求地址：http://127.0.0.1:8080/user/getUser
	 * 
	 * @return
	 */
	@RequestMapping("/getUser")
	public UserDO getUserDO() {
		UserDO userDO = new UserDO();
		userDO.setId(1);
		userDO.setName("qianzhong");
		userDO.setPassword("hhahahahaha");
		return userDO;
	}

}
